﻿using System.Web.Mvc;

namespace NerdDinner.Models
{
    public class DinnerFormViewModel
    {
        private static readonly string[] _countries = new[]
                                                          {
                                                              "USA",
                                                              "Belgium",
                                                              "France"
                                                          };

        public DinnerFormViewModel(Dinner dinner)
        {
            Dinner = dinner;
            Countries = new SelectList(_countries, dinner.Country);
        }

        // Properties
        public Dinner Dinner { get; private set; }
        public SelectList Countries { get; private set; }
        // Constructor
    }
}